package QL;

import java.util.Map;

public class ButlerCdkeyGroupQueryRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 筛选分组名称，如果要查询全部分组，请留空
    /// </summary>
    public String FilterName;

    /// <summary>
    /// 是否根据创建时间筛选
    /// </summary>
    public boolean IsFilterByCreateTime;

    /// <summary>
    /// 起始创建时间
    /// </summary>
    public String FilterCreateTimeBegin;

    /// <summary>
    /// 结束创建时间
    /// </summary>
    public String FilterCreateTimeEnd;

    /// <summary>
    /// 请求第几页数据？
    /// </summary>
    public long PageIndex;

    /// <summary>
    /// 每页多少条纪录？
    /// </summary>
    public long PageCount;

    @Override
    public String GetApiName()
    {
        return "butler.cdkey.group.query";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("filter_name", FilterName);
        map.put("is_filter_by_create_time", IsFilterByCreateTime ? "True" : "False");
        map.put("filter_create_time_begin", FilterCreateTimeBegin);
        map.put("filter_create_time_end", FilterCreateTimeEnd);
        map.put("page_index", String.valueOf(PageIndex));
        map.put("page_count", String.valueOf(PageCount));
    }
}
